StartSimulationEngine  "SimState/basicsim.xml"

//Maze
AddNewEntity    ent1  	/Position:0  0.25  0
	/IsKinematic:true

AddBoxShape  	/Dimensions:10  0.5  0.2  	/Mass:0.5
	/Position:0    0    -2

AddBoxShape  /Dimensions: 0.2  0.5  10  	/Mass:0.5
	/Position:2    0    0

AddBoxShape  /Dimensions: 0.2  0.5  10  	/Mass:0.5
	/Position:-2    0    0


//Robot
AddDifferentialDriveEntity    base1

AddLaserRangeFinderEntity    lrf1
	/Position:0  0.4  0
	/ParentEntity:base1

FlushScript  

base1.Go()


Procedure  TurnLeft

	base1.Turn(-90, 0.3)

	base1.Go();	
		
	Send  "I_am_ready"
	
End

Procedure  TurnRight

	base1.Turn(90, 0.3)

	base1.Go()	
		
	Send "I_am_ready"	
End

